Skip to content

Conversation

@soburi
Copy link
Member

@soburi soburi commented Feb 6, 2026

Move the overlay path to match the arduino-repo.

We will also improve the search path accordingly.

Copilot AI review requested due to automatic review settings February 6, 2026 00:10
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR relocates board variant overlay files and header files to align with the Arduino repository structure. The changes restructure how overlay files are organized and improve the CMake build system's search logic to locate these files flexibly across different naming conventions.

Changes:

  • Add variant-specific overlay files and header files for 7 board variants (rpi_pico, cc3220sf_launchxl, beagleconnect_freedom, arduino_nano_33_iot, arduino_nano_33_ble, arduino_mkrzero)
  • Update CMakeLists.txt files in all 10 sample directories to implement an enhanced variant directory search mechanism that supports multiple naming patterns

Reviewed changes

Copilot reviewed 10 out of 22 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
variants/rpi_pico/variant.h Add copyright header for Raspberry Pi Pico variant
variants/rpi_pico/rpi_pico.overlay Add device tree overlay with GPIO, PWM, and ADC pin configurations for Raspberry Pi Pico
variants/cc3220sf_launchxl/variant.h Add variant header defining LED pin constants for CC3220SF LaunchXL board
variants/cc3220sf_launchxl/cc3220sf_launchxl.overlay Add device tree overlay with GPIO pin mappings for CC3220SF LaunchXL boosterpack
variants/beagleconnect_freedom/variant.h Add variant header defining I2C pin mappings for BeagleConnect Freedom
variants/beagleconnect_freedom/beagleconnect_freedom.overlay Add device tree overlay with extensive GPIO, PWM, and ADC configurations for BeagleConnect Freedom
variants/arduino_nano_33_iot/variant.h Add copyright header for Arduino Nano 33 IoT variant
variants/arduino_nano_33_iot/arduino_nano_33_iot.overlay Add device tree overlay with GPIO, PWM, and ADC configurations for Arduino Nano 33 IoT
variants/arduino_nano_33_ble/variant.h Add copyright header for Arduino Nano 33 BLE variant
variants/arduino_nano_33_ble/arduino_nano_33_ble.overlay Add device tree overlay with GPIO, PWM, and ADC configurations for Arduino Nano 33 BLE
variants/arduino_mkrzero/variant.h Add copyright header for Arduino MKR Zero variant
variants/arduino_mkrzero/arduino_mkrzero.overlay Add device tree overlay with GPIO, PWM, and ADC configurations for Arduino MKR Zero
samples/threads_arduino/CMakeLists.txt Update overlay search logic to support flexible variant directory naming patterns
samples/spi_controller/CMakeLists.txt Update overlay search logic to support flexible variant directory naming patterns
samples/serial_event/CMakeLists.txt Update overlay search logic to support flexible variant directory naming patterns
samples/i2cdemo/CMakeLists.txt Update overlay search logic to support flexible variant directory naming patterns
samples/hello_arduino/CMakeLists.txt Update overlay search logic to support flexible variant directory naming patterns
samples/fade/CMakeLists.txt Update overlay search logic to support flexible variant directory naming patterns
samples/button_press_led/CMakeLists.txt Update overlay search logic to support flexible variant directory naming patterns
samples/blinky_arduino/CMakeLists.txt Update overlay search logic to support flexible variant directory naming patterns
samples/attach_interrupt/CMakeLists.txt Update overlay search logic to support flexible variant directory naming patterns
samples/analog_input/CMakeLists.txt Update overlay search logic to support flexible variant directory naming patterns

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@soburi
Copy link
Member Author

soburi commented Feb 6, 2026

If possible, could you also consider adding an SPDX-compatible license (suitable for inclusion in Zephyr) to the files under the variants directory, and ensuring it is clearly stated in the files? > @pillo79

(.venv) soburi@um890pro:~/zephyrproject/modules/lib/ArduinoCore-Zephyr$ grep -rL Apache variants/ | sort
variants/_ldscripts/build-dynamic.ld
variants/_ldscripts/build-static.ld
variants/_ldscripts/memory-check.ld
variants/_ldscripts/memory-static.ld
variants/arduino_giga_r1_stm32h747xx_m7/arduino_giga_r1_stm32h747xx_m7.conf
variants/arduino_giga_r1_stm32h747xx_m7/arduino_giga_r1_stm32h747xx_m7.overlay
variants/arduino_giga_r1_stm32h747xx_m7/pure_analog_pins.cpp
variants/arduino_giga_r1_stm32h747xx_m7/pure_analog_pins.h
variants/arduino_giga_r1_stm32h747xx_m7/variant.cpp
variants/arduino_nano_33_ble/arduino_nano_33_ble.overlay
variants/arduino_nano_33_ble_nrf52840_sense/arduino_nano_33_ble_nrf52840_sense.conf
variants/arduino_nano_33_ble_nrf52840_sense/arduino_nano_33_ble_nrf52840_sense.overlay
variants/arduino_nano_33_ble_nrf52840_sense/variant.cpp
variants/arduino_nano_33_iot/arduino_nano_33_iot.overlay
variants/arduino_nano_matter_mgm240sd22vna/arduino_nano_matter_mgm240sd22vna.conf
variants/arduino_nano_matter_mgm240sd22vna/arduino_nano_matter_mgm240sd22vna.overlay
variants/arduino_nano_matter_mgm240sd22vna/variant.h
variants/arduino_nicla_sense_me_nrf52832/arduino_nicla_sense_me_nrf52832.conf
variants/arduino_nicla_sense_me_nrf52832/arduino_nicla_sense_me_nrf52832.overlay
variants/arduino_nicla_sense_me_nrf52832/variant.h
variants/arduino_opta_stm32h747xx_m7/arduino_opta_stm32h747xx_m7.conf
variants/arduino_opta_stm32h747xx_m7/arduino_opta_stm32h747xx_m7.overlay
variants/arduino_opta_stm32h747xx_m7/variant.cpp
variants/arduino_opta_stm32h747xx_m7/variant.h
variants/arduino_portenta_c33_r7fa6m5bh3cfc/arduino_portenta_c33_r7fa6m5bh3cfc.conf
variants/arduino_portenta_c33_r7fa6m5bh3cfc/arduino_portenta_c33_r7fa6m5bh3cfc.overlay
variants/arduino_portenta_c33_r7fa6m5bh3cfc/variant.cpp
variants/arduino_portenta_c33_r7fa6m5bh3cfc/variant.h
variants/arduino_portenta_h7_stm32h747xx_m7/arduino_portenta_h7_stm32h747xx_m7.conf
variants/arduino_portenta_h7_stm32h747xx_m7/arduino_portenta_h7_stm32h747xx_m7.overlay
variants/arduino_portenta_h7_stm32h747xx_m7/variant.cpp
variants/arduino_uno_q_stm32u585xx/analogReference.cpp
variants/arduino_uno_q_stm32u585xx/arduino_uno_q_stm32u585xx.conf
variants/arduino_uno_q_stm32u585xx/arduino_uno_q_stm32u585xx.overlay
variants/arduino_uno_q_stm32u585xx/flash_bootloader.cfg
variants/arduino_uno_q_stm32u585xx/flash_sketch.cfg
variants/arduino_uno_q_stm32u585xx/flash_sketch_ram.cfg
variants/arduino_uno_q_stm32u585xx/scripts/set-to-ram-mode.sh
variants/common/arduino_flash_fs.dtsi
variants/ek_ra8d1_r7fa8d1bhecbd/ek_ra8d1_r7fa8d1bhecbd.conf
variants/ek_ra8d1_r7fa8d1bhecbd/ek_ra8d1_r7fa8d1bhecbd.overlay
variants/ek_ra8d1_r7fa8d1bhecbd/flasher.jlink
variants/ek_ra8d1_r7fa8d1bhecbd/linker_script.ld
variants/frdm_mcxn947_mcxn947_cpu0/frdm_mcxn947_mcxn947_cpu0.conf
variants/frdm_mcxn947_mcxn947_cpu0/frdm_mcxn947_mcxn947_cpu0.overlay
variants/frdm_mcxn947_mcxn947_cpu0/linker_script.ld
variants/frdm_rw612_rw612/frdm_rw612_rw612.conf
variants/frdm_rw612_rw612/frdm_rw612_rw612.overlay
variants/frdm_rw612_rw612/variant.h
variants/nrf52840dk_nrf52840/nrf52840dk_nrf52840.overlay
variants/nrf9160dk_nrf9160/nrf9160dk_nrf9160.overlay

soburi pushed a commit to soburi/ArduinoCore-zephyr that referenced this pull request Feb 6, 2026
…_setup_readme

Update README.md: pre-requirements for macOS and fix flash loader instructions
@pillo79
Copy link
Contributor

pillo79 commented Feb 6, 2026

Will do, sorry I couldn't add it in time for 0.53.1.

@soburi soburi force-pushed the relocating_overlays branch from 06ab039 to 9339e59 Compare February 7, 2026 04:51
@soburi
Copy link
Member Author

soburi commented Feb 8, 2026

Will do, sorry I couldn't add it in time for 0.53.1.

This PR can be merged without waiting for @pillo79 's comment to be addressed. > @DhruvaG2000

@soburi soburi force-pushed the relocating_overlays branch from 9339e59 to fc372d4 Compare February 9, 2026 06:42
Directories and filenames are now searched in the following order:

- ${board}_${qualifier}_${revision}
- ${board}_${qualifier}
- ${board}

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
Move the overlay path to match the arduino-repo.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
@soburi soburi force-pushed the relocating_overlays branch from fc372d4 to 2122739 Compare February 9, 2026 09:52
@DhruvaG2000 DhruvaG2000 merged commit 8d6e5ce into zephyrproject-rtos:next Feb 9, 2026
3 checks passed
@soburi soburi deleted the relocating_overlays branch February 10, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants